<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1 th:text="#{i18n.login}"></h1>
    <a th:href="@{/index.html(lang='zh-CN')}">中文</a>
    <a th:href="@{/index.html(lang='en-US')}">English</a>

    <form th:action="@{/user/login}">
        <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
        <input type="text" name="username" th:placeholder="#{i18n.username}">
        <input type="password" name="password" th:placeholder="#{i18n.password}">
        <button type="submit"></button>
    </form>
</body>
</html>
